package scau.zxck.view.node;

import javafx.scene.control.TreeItem;

/**
 * Created by chenyulin on 2016/11/29.
 */
public class MyTreeItem extends TreeItem {
    private int connIndex = -1;
    private int databaseIndex = -1;

    public MyTreeItem(String value){
        super(value);
    };

    public MyTreeItem(String value, int connIndex) {
        super(value);
        this.connIndex = connIndex;
    }

    public MyTreeItem(String value, int connIndex, int databaseIndex) {
        super(value);
        this.connIndex = connIndex;
        this.databaseIndex = databaseIndex;
    }

    public int getConnIndex() {
        return connIndex;
    }

    public int getDatabaseIndex() {
        return databaseIndex;
    }
}
